.class Lcom/qiniu/resumableio/ResumableIO$2;
.super Ljava/lang/Object;
.source "ResumableIO.java"

# interfaces
.implements Lcom/qiniu/utils/ICancel;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/qiniu/resumableio/ResumableIO;->put(Ljava/lang/String;Lcom/qiniu/utils/InputStreamAt;Lcom/qiniu/resumableio/PutExtra;Lcom/qiniu/auth/JSONObjectRet;)I
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/qiniu/resumableio/ResumableIO;

.field final synthetic val$cancelers:[[Lcom/qiniu/utils/ICancel;

.field final synthetic val$extra:Lcom/qiniu/resumableio/PutExtra;

.field final synthetic val$failure:[Z

.field final synthetic val$ret:Lcom/qiniu/auth/JSONObjectRet;


# direct methods
.method constructor <init>(Lcom/qiniu/resumableio/ResumableIO;[[Lcom/qiniu/utils/ICancel;[ZLcom/qiniu/auth/JSONObjectRet;Lcom/qiniu/resumableio/PutExtra;)V
    .registers 6
    .param p1, "this$0"    # Lcom/qiniu/resumableio/ResumableIO;

    .prologue
    .line 73
    iput-object p1, p0, Lcom/qiniu/resumableio/ResumableIO$2;->this$0:Lcom/qiniu/resumableio/ResumableIO;

    iput-object p2, p0, Lcom/qiniu/resumableio/ResumableIO$2;->val$cancelers:[[Lcom/qiniu/utils/ICancel;

    iput-object p3, p0, Lcom/qiniu/resumableio/ResumableIO$2;->val$failure:[Z

    iput-object p4, p0, Lcom/qiniu/resumableio/ResumableIO$2;->val$ret:Lcom/qiniu/auth/JSONObjectRet;

    iput-object p5, p0, Lcom/qiniu/resumableio/ResumableIO$2;->val$extra:Lcom/qiniu/resumableio/PutExtra;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public cancel(Z)Z
    .registers 9
    .param p1, "isIntercupt"    # Z

    .prologue
    const/4 v6, 0x1

    const/4 v2, 0x0

    .line 77
    iget-object v3, p0, Lcom/qiniu/resumableio/ResumableIO$2;->val$cancelers:[[Lcom/qiniu/utils/ICancel;

    array-length v4, v3

    move v1, v2

    :goto_6
    if-ge v1, v4, :cond_19

    aget-object v0, v3, v1

    .line 78
    .local v0, "cancel":[Lcom/qiniu/utils/ICancel;
    if-eqz v0, :cond_10

    aget-object v5, v0, v2

    if-nez v5, :cond_13

    .line 77
    :cond_10
    :goto_10
    add-int/lit8 v1, v1, 0x1

    goto :goto_6

    .line 79
    :cond_13
    aget-object v5, v0, v2

    invoke-interface {v5, v6}, Lcom/qiniu/utils/ICancel;->cancel(Z)Z

    goto :goto_10

    .line 81
    .end local v0    # "cancel":[Lcom/qiniu/utils/ICancel;
    :cond_19
    iget-object v1, p0, Lcom/qiniu/resumableio/ResumableIO$2;->val$failure:[Z

    aput-boolean v6, v1, v2

    .line 82
    iget-object v1, p0, Lcom/qiniu/resumableio/ResumableIO$2;->val$ret:Lcom/qiniu/auth/JSONObjectRet;

    iget-object v3, p0, Lcom/qiniu/resumableio/ResumableIO$2;->val$extra:Lcom/qiniu/resumableio/PutExtra;

    invoke-virtual {v1, v3}, Lcom/qiniu/auth/JSONObjectRet;->onPause(Ljava/lang/Object;)V

    .line 83
    return v2
.end method
